]> dgit.raspbian.org Git - gnome-shell.git/commit
network: Avoid JS error when activating VPN connection
authorMichael Catanzaro <mcatanzaro@gnome.org>
Tue, 20 Dec 2016 20:00:42 +0000 (14:00 -0600)
committerMichael Catanzaro <mcatanzaro@gnome.org>
Tue, 27 Dec 2016 18:14:19 +0000 (12:14 -0600)
commitda7db509e7546324152e8af558fb44c587fa0aae
tree3cdc418b73a2a0818f3235c7b0926387866d9660
parent2a525bd8e8a1f9b9ec743500353274d754fc040d
network: Avoid JS error when activating VPN connection

If the call to settings.get_connection_by_path in
ensureActiveConnectionProps returns null, we'll hit a JS error here.
Seems to happen always when activating a VPN connection. Avoid that.

Giovanni says:

"I believe this is papering over an existing bug, but it's possible for
settings.get_connection_by_path() to legitimately return null (if the
connection is owned by a different user and invisible to the current
one), so the fix is correct anyway."

https://bugzilla.gnome.org/show_bug.cgi?id=759793
js/ui/status/network.js